<?php
require_once('header.php');
view($_SESSION);
?>

<section id="window" class="group white-box">
        <img src="images/subbear-logo.png" alt="<?php echo WEBSITE_NAME; ?>" />
        <h1 id="subbear-title"><?php echo WEBSITE_NAME; ?></h1>
        
        <?php 
        if ( $session->is_logged_in() ) { 
           ?>
           <h3 class="margin-top">Welcome back <strong><?php echo ucwords( $session->publication->name ); ?></strong>.</h3>
           <?php
           if( !$session->is_admin() ) {
            include("nav.mini.php");
           } else {
            include("template.admin.php");
           }
        } else {
           include( "template.$template_type.php");
        } 
        ?>
        
</section>

<?php

//
//  End page.
//
require_once('footer.php');
?>
